
%.o:%.cpp
	g++ -g -c $<

SOURCES = $(wildcard *.cpp)
OBJS = $(patsubst %.cpp,%.o, $(SOURCES))

target=sem
$(target): $(OBJS)
	g++ -o $@ $^ -lpthread -lrt

clean:
	rm ./*.o $(target)
